#ifndef MAINWINDOW_H
#define MAINWINDOW_H

// #include "ppc_impl.h"

#include <QtGui/QMainWindow>
#include <QTextEdit>

#include "ui_dlgcapisaldi.h"

// #include "ui_dialog.h"

// #include <QMdiArea>
// #include <QGraphicsView>
// #include <QDockWidget>
// #include <QTreeWidget>

// #include "treeprjwall.h"
// #include "treeprjsez.h"

#include "Comm.h"
#include "Work.h"
#include "Elab.h"

class QAction;

namespace Ui
{
    class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

protected:
    void contextMenuEvent(QContextMenuEvent *event);

private slots:
    void newFile(void);
    void drawTest_1(void);
    void drawTest_2(void);
    void onView1(void);
    void onView2(void);
    void new_Muro(void);
    void new_Sezione(void);
    void onOpenDlgCapisaldi(void);
    void onOpenDlgImpostazioniProgetto(void);

private:
   // Ui::MainWindow *ui;


    void createActions();
    void createMenus(void);

    QAction *newAction;
    QAction *draw1Action;
    QAction *draw2Action;
    QAction *view1Action;
    QAction *view2Action;
    QAction *openDlgCapisaldiAction;
    QAction *openDlgImpostazioniProgettoAction;

	// QDialog *DialogCapisaldi;

    // QAction *newMuroAction;
    // QAction *deleteMuroAction;
    // QAction *renameMuroAction;

    QMenu *fileMenu;
    QTextEdit* textedit;
    // QMenu *treeViewPopUpMenu;

    // QDockWidget* dock_muro;
    // QDockWidget* dock_sezione;

    // treePrjWall* tree;
    // treePrjSez* tree_sez;

    // QMdiArea* mdiarea;

    // QMdiSubWindow* window1;
    // QMdiSubWindow* window2;

    // QGraphicsView* view;
    // QGraphicsView* view1;
    // QGraphicsScene* scene;
    // QGraphicsScene* scene1;

    Comm m_comm;
    Work m_work;

};

#endif // MAINWINDOW_H
